<%-- 
    Document   : editCustomer
    Created on : Jan 1, 2010, 4:35:39 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<form method="post">
    <table border="1">
        <c:if test="${msg!=null}">
            <tr>
                <td colspan="2" style="font-style:italic; color:red;">${msg}</td>
            </tr>
        </c:if>
        <tr>
            <td>Full name:</td>
            <td><input type="text" name="name" value="${customer.name}" /></td>
        </tr>
        <tr>
            <td>Personal Id:</td>
            <td><input type="text" name="personalId" value="${customer.personalId}" /></td>
        </tr>

        <tr>
            <td>Cellphone:</td>
            <td><input type="text" name="cellphone" value="${customer.cellphone}" /></td>
        </tr>
        <tr>
            <td>Password: </td>
            <td><input type="password" name="password" value="${customer.password}" /></td>

        </tr>
        <tr>
            <td>Password again: </td>
            <td>
                <c:if test="${passwordAgain!=null}">
                    <input type="password" name="passwordAgain" value="${passwordAgain}" />
                </c:if>
                <c:if test="${passwordAgain==null}">
                    <input type="password" name="passwordAgain" value="${customer.password}" />
                </c:if>
            </td>
        </tr>
        <tr>
            <td>Security Enabled: </td>

            <td><input type="checkbox" name="securityEnabled"  <c:if test="${customer.securityEnabled}">checked</c:if></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" name="save" value="Save"/>
            </td>
        </tr>
    </table>
</form>